package com.dapeis.domain;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.commons.io.filefilter.FalseFileFilter;

import com.ag.core.base.Domain;
import com.dapeis.core.utils.StylistConstants;

/**
 * 
 * Title:User.java User Description:
 * 
 * @author yuanyong
 * @date 2017年4月17日 下午5:08:02 Email: hzyuanyong@126.com
 *
 */
@Table(name = "dps_user")
public class User extends Domain {

    private static final long serialVersionUID = -7216556689074541923L;
    @Id
    @GeneratedValue(generator = "JDBC")
    Integer id;
    String contact; // 手机号
    String nickName; // 昵称
    String headImg; // 头像
    String password; // 密码
    Integer state = StylistConstants.State.NORMAL; // 状态 1 正常， 0 禁用
    Long lastLoginTime; // 最后登录时间
    Long loginTime; // 登录时间
    String loginIp; // 登录IP
    String lastLoginIp; // 最后登录IP
    Long recordCreateTime; // 修改时间
    String openSourceKey; // 第三方key val:34 现存储为openId
    Integer infoId;//用户信息表
    Long regTIMDate; //注册TIM时间
    String couponsCode;//优惠吗

    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_CONTACT = "contact";
    public static final String PROPERTY_STATE = "state";
    public static final String PROPERTY_OPENSOURCEKEY = "openSourceKey";
    public static final String PROPERTY_NICKNAME = "nickname";
    public static final String PROPERTY_SEX = "sex";
    public static final String PROPERTY_BIRTHDAY = "birthday";
    public static final String PROPERTY_COUPONSCODE = "couponsCode";

    public Integer getId() {
	return id;
    }

    public void setId(Integer id) {
	this.id = id;
    }

    public String getContact() {
	return contact;
    }

    public void setContact(String contact) {
	this.contact = contact;
    }

    public String getNickName() {
	return nickName;
    }

    public void setNickName(String nickName) {
	this.nickName = nickName;
    }

    public String getHeadImg() {
	return headImg;
    }

    public void setHeadImg(String headImg) {
	this.headImg = headImg;
    }

    public String getPassword() {
	return password;
    }

    public void setPassword(String password) {
	this.password = password;
    }

    public Integer getState() {
	return state;
    }

    public void setState(Integer state) {
	this.state = state;
    }

    public Long getLastLoginTime() {
	return lastLoginTime;
    }

    public void setLastLoginTime(Long lastLoginTime) {
	this.lastLoginTime = lastLoginTime;
    }

    public Long getLoginTime() {
	return loginTime;
    }

    public void setLoginTime(Long loginTime) {
	this.loginTime = loginTime;
    }

    public String getLoginIp() {
	return loginIp;
    }

    public void setLoginIp(String loginIp) {
	this.loginIp = loginIp;
    }

    public String getLastLoginIp() {
	return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
	this.lastLoginIp = lastLoginIp;
    }

    public Long getRecordCreateTime() {
	return recordCreateTime;
    }

    public void setRecordCreateTime(Long recordCreateTime) {
	this.recordCreateTime = recordCreateTime;
    }

    public String getOpenSourceKey() {
	return openSourceKey;
    }

    public void setOpenSourceKey(String openSourceKey) {
	this.openSourceKey = openSourceKey;
    }

    public Integer getInfoId() {
        return infoId;
    }

    public void setInfoId(Integer infoId) {
        this.infoId = infoId;
    }

    public Long getRegTIMDate() {
        return regTIMDate;
    }

    public void setRegTIMDate(Long regTIMDate) {
        this.regTIMDate = regTIMDate;
    }

	public String getCouponsCode() {
		return couponsCode;
	}

	public void setCouponsCode(String couponsCode) {
		this.couponsCode = couponsCode;
	}
    
}
